package Work2;

import java.util.Scanner;
import java.util.regex.Pattern;

public class Judge {
	public static boolean isnum(String s){
		return Pattern.matches( "^\\d+$",s);
	}//201521123063
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		while (scan.hasNextLine()) {
			String string=scan.nextLine();
			System.out.println(isnum(string));
		}
		scan.close();
	}
}
